<template>
	<view>
		<view class="u-p-20 ">
			<view class="bg_FFFFFF u-p-20  u-b-r-16">
				<view class="u-p-20 u-flex u-row-between" style="border-bottom: 1rpx solid #F4F1F1;">
					<view class="u-flex">
						<view class="u-h-36">
							<u-image src='https://www.sqkjkj.vip/wxImg/orderlist/img1.png' width='36rpx' height='36rpx'></u-image>
						</view>
						<view class="u-p-l-10 u-weight u-h-36">{{info.shop_name}}</view>
						<view class="u-p-l-20 u-h-36">
							<u-image src='https://www.sqkjkj.vip/wxImg/orderlist/img2.png' width='20rpx' height='20rpx'></u-image>
						</view>
					</view>

					<view class="" style="color: #FC3533;">{{info.status_title}}</view>

				</view>

				<view class="u-p-20 u-flex u-row-between" style="border-bottom: 1rpx solid #F4F1F1;"
					v-for="(items,index) in info.order_item" :key="index">
					<view class="u-flex">
						<view class="">
							<u-image :src='items.imgs[0]' width='183rpx' height='183rpx'></u-image>
						</view>
						<view class="u-p-l-10 ">
							<view class="u-weight">{{items.goods_name}}</view>
							<!-- <view class="u-weight u-p-t-10">可口30克*12枚</view> -->
							<view class="u-font-20  u-m-t-10" style="">
								{{items.spece_value_title}}
							</view>
							<view class=" u-p-t-10" style="color: #FC3533;">￥{{items.price}}</view>
						</view>

					</view>
					<view class="u-font-20" style="color:#454545;">{{items.num}}</view>
				</view>

				<view class="u-p-20">
					<view class="" style="color: #FC3533;text-align: right;">合计:￥{{info.total_amount}}</view>
				</view>
			</view>
		</view>
		<view class="" style="padding: 30rpx 30rpx 200rpx;">
			<view class="bg_FFFFFF u-p-20 u-b-r-16">

				<view class="u-m-t-20 u-flex" style="color: #68615F;">
					<view class="">货品状态</view>
					<view class="u-m-l-20">{{info.transport_status==0?'未收到货':'已收到货'}}</view>
				</view>
				<view class="u-m-t-20 u-flex" style="color: #68615F;">
					<view class="">退货原因</view>
					<view class="u-m-l-20">{{info.refund_cause}}</view>
				</view>
				<view class="u-m-t-20 u-flex" style="color: #68615F;">
					<view class="">退款金额</view>
					<view class="u-m-l-20" style="color: #FC3533;">￥{{info.refund_amount}}</view>
				</view>
				<view class="u-m-t-20 u-flex" style="color: #68615F;">
					<view class="">退款编号</view>
					<view class="u-m-l-20">{{info.refund_sn}}</view>
				</view>
				<view class="u-m-t-20 u-flex" style="color: #68615F;">
					<view class="">退款详情</view>
					<view class="u-m-l-20">{{info.refund_info}}</view>
				</view>
				<view class="u-m-t-20" style="color: #68615F;">
					<view class="">上传图片</view>
					<view class="u-m-l-20" style="overflow: auto; ">
						<view v-for="(img,imgi) in info.refund_img" :key="imgi" class="u-m-l-10 u-m-t-10" style="float: left;">
							<u-image :src='img' width='150rpx' height='150rpx' mode="aspectFit"></u-image>
						</view>
					</view>
				</view>
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				info: '',
				id: ''
			}
		},
		onLoad(obj) {
			this.id = obj.id
		},
		onShow() {
			this.refund_detail()
		},
		methods: {
			refund_detail() {
				this.$api.refund_detail({
					id: this.id
				}, res => {
					if (res.data.code == 1) {
						this.info = res.data.data
					}
				})
			}
		}
	}
</script>

<style scoped>
	page {
		background-color: #f5f5f5;
	}

	.one {
		margin-top: 20rpx;
		width: 710rpx;
		height: 213rpx;
		/* background: url('https://www.sqkjkj.vip/wxImg/orderlist/img3.png') no-repeat;
		background-size: 100% 100%; */
	}

	.bgc {
		background: #F4F4F4;
	}

	.bgc1 {
		background: #FFF2F2;
		border: 1rpx solid #FC3533;
	}

	.error {
		width: 74rpx;
		height: 160rpx;
		background: url('https://www.sqkjkj.vip/wxImg/common/home/img12.png') no-repeat;
		background-size: 100% 100%;
	}
</style>
